package com.hdoit.kylin.web.baseInfo.modelconfig;

import com.hdoit.kylin.web.baseInfo.providers.GroupIdProvider;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
* @author lufu
* @email
* @createtime 2017年07月25日 16:11:17
* @comment
*/
public class MoneyTypeConfig extends ModelMetadataAttributeConfiguration{
	public MoneyTypeConfig(){
		this.setProperty("moneyType")
			.hasAttribute(new DisplayNameAttribute("经费类型"));
		this.setProperty("groupId")
			.hasAttribute(new DisplayNameAttribute("课题组"))
			.hasAttribute(new DropDownListAttribute(new GroupIdProvider()))
			.hasAttribute(new RequiredAttribute("课题组为必填项"));
	}
}